<!--
@MAC-ALLOW:AXSubrole=*
-->
<html>
<body>
Test for modal dialog opened in an iframe.
<iframe scrolling="no"></iframe>
<script>
var frameCode =
    '<dialog>Text in the dialog.</dialog>\n' +
    '<button>I should not be in the AT tree.</button>\n';

var iframeDoc = document.querySelector('iframe').contentDocument;
iframeDoc.open();
iframeDoc.write(frameCode);
iframeDoc.close();

var dialog = iframeDoc.querySelector('dialog');
dialog.showModal();
</script>
</body>
</html>
